package com.itheima.commons.model.vo;

import com.itheima.commons.model.domain.Dimensions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DimensionsVo  implements Serializable {
    //维度项
    private String key;
    //维度值
    private String value;


    public DimensionsVo(Dimensions dimensions) {
      this.key = dimensions.getKey();
      this.value = dimensions.getValue();
    }
}
